package com.xju.admin.entity;

import com.xju.admin.utils.DateUtil;

public class ExamShow extends Exam {
    private String newStatus;
    private String newCreator;
    private String newCreateTime;

    public ExamShow(String newStatus, String newCreator,String newCreateTime) {
        this.newStatus = newStatus;
        this.newCreator = newCreator;
        this.newCreateTime=newCreateTime;
    }

    public ExamShow(Exam exam){
        this.setExamId(exam.getExamId());
        this.setExamContent(exam.getExamContent());
        this.setExamName(exam.getExamName());
        this.setExamDifficulty(exam.getExamDifficulty());
        this.setExamScore(exam.getExamScore());
        this.setExamStatus(exam.getExamStatus());
        this.setExamCreator(exam.getExamCreator());
        this.setExamCreateTime(exam.getExamCreateTime());
        this.setNewCreateTime(DateUtil.dateFormat(exam.getExamCreateTime()));
    }

    public String getNewCreateTime() {
        return newCreateTime;
    }

    public void setNewCreateTime(String newCreateTime) {
        this.newCreateTime = newCreateTime;
    }

    public String getNewStatus() {
        return newStatus;
    }

    public void setNewStatus(String newStatus) {
        this.newStatus = newStatus;
    }

    public String getNewCreator() {
        return newCreator;
    }

    public void setNewCreator(String newCreator) {
        this.newCreator = newCreator;
    }
}
